

<li class="header">管理菜单</li>

<if condition="$menuid eq 'x'">
    <li class="treeview" data-id="9999">
        <a href="{:U('Index/index')}#menuid-9999-x"><i class="fa fa-circle-o"></i> <span>首页</span></a>
    </li>
    <volist name="menu" id="n">
        <li class="treeview" data-id="{$n.nid}">
            <a href="{$n.url}#menuid-{$n.nid}-x"><i class="fa fa-circle-o"></i> <span>{$n.title}</span></a>
        </li>
    </volist>
    <li class="treeview" data-id="0">
        <a href="{:U('Panel/set')}#menuid-0-x"><i class="fa fa-circle-o"></i> <span>常用菜单管理</span></a>
    </li>
    <else/>
    <volist name="menu" id="n">
        <li class="treeview" data-id="{$n.nid}">
            <a href="#menuid-{$n.nid}-{$menuid}">
                <i class="fa fa-folder"></i> <span>{$n.title}</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <volist name="n[_data]" id="m">
                    <li data-id="{$m.nid}">
                        <a href="{$m.url}#menuid-{$m.nid}-{$n.nid}-{$menuid}"><i class="fa fa-circle-o text-red"></i> {$m.title} <if condition="$m[_data]"><i class="fa fa-angle-left pull-right"></i></if></a>
                        <if condition="$m[_data]">
                            <ul class="treeview-menu">
                                <volist name="m[_data]" id="k">
                                    <li data-id="{$k.nid}"><a href="{$k.url}#menuid-{$k.nid}-{$m.nid}-{$n.nid}-{$menuid}" data-id="{$k.nid}"><i class="fa fa-circle-o text-red"></i> {$k.title} </a></li>
                                </volist>
                            </ul>
                        </if>
                    </li>
                </volist>

            </ul>
        </li>
    </volist>
</if>